# Robot module configurations : general handling of movement G-codes and slicing into moves
default_feed_rate                            6000             # Default rate ( mm/minute ) for G1/G2/G3 moves
default_seek_rate                            10000             # Default rate ( mm/minute ) for G0 moves
mm_per_arc_segment                           0.5              # Arcs are cut into segments ( lines ), this is the length for these segments.  Smaller values mean more resolution, higher values mean faster computation
mm_per_line_segment                          5                # Lines can be cut into segments ( not usefull with cartesian coordinates robots ).

# Arm solution configuration : Cartesian robot. Translates mm positions into stepper positions
alpha_steps_per_mm                           266.66           # Steps per mm for alpha stepper
beta_steps_per_mm                            266.66           # Steps per mm for beta stepper
gamma_steps_per_mm                           1600             # Steps per mm for gamma stepper

# Planner module configuration : Look-ahead and acceleration configuration
planner_queue_size                           32               # Size of the planning queue, must be a power of 2. 128 seems to be the maximum.
acceleration                                 1500             # Acceleration in mm/second/second.
acceleration_ticks_per_second                1000             # Number of times per second the speed is updated
junction_deviation                           0.05             # Similar to the old "max_jerk", in millimeters, see : https://github.com/grbl/grbl/blob/master/planner.c#L409
                                                              # and https://github.com/grbl/grbl/wiki/Configuring-Grbl-v0.8 . Lower values mean being more careful, higher values means being faster and have more jerk

# Stepper module configuration
microseconds_per_step_pulse                  1                # Duration of step pulses to stepper drivers, in microseconds
minimum_steps_per_minute                     1200             # Never step slower than this
base_stepping_frequency                      100000           # Base frequency for stepping, higher gives smoother movement

# Stepper module pins ( ports, and pin numbers, appending "!" to the number will invert a pin )
alpha_step_pin                               2.1              # Pin for alpha stepper step signal
alpha_dir_pin                                0.11             # Pin for alpha stepper direction
alpha_en_pin                                 0.4              # Pin for alpha enable pin
alpha_current                                0                # X stepper motor current
x_axis_max_speed                             72000            # mm/min

beta_step_pin                                2.2              # Pin for beta stepper step signal
beta_dir_pin                                 0.20!             # Pin for beta stepper direction
beta_en_pin                                  0.10             # Pin for beta enable
beta_current                                 0                # Y stepper motor current
y_axis_max_speed                             72000            # mm/min

gamma_step_pin                               2.6              # Pin for gamma stepper step signal
gamma_dir_pin                                1.25              # Pin for gamma stepper direction
gamma_en_pin                                 0.19             # Pin for gamma enable
gamma_current                                0                # Z stepper motor current
z_axis_max_speed                             180              # mm/min

# Serial communications configuration ( baud rate default to 9600 if undefined )
uart0.baud_rate                              115200           # Baud rate for the default hardware serial port
second_usb_serial_enable                     false            # This enables a second usb serial port (to have both pronterface and a terminal connected)
delta_current                                0                # Extruder stepper motor current

# Laser module configuration
laser_module_enable                          true             # Whether to activate the laser module at all. All configuration is ignored if false.
laser_module_pin                             2.5o^            # this pin will be PWMed to control the laser
laser_module_max_power                       1.0              # this is the maximum duty cycle that will be applied to the laser
laser_module_tickle_power                    0.0              # this duty cycle will be used for travel moves to keep the laser active without actually burning


# Switch module for laser control
switch.laser_on.enable                       true             #
switch.laser_on.input_on_command             M10              #
switch.laser_on.input_off_command            M11              #
switch.laser_on.output_pin                   2.7o^!           #
switch.laser_on.startup_state                false            #   

# Switch module for direct control of laser pwm
switch.laser_pwm.enable                      true             #
switch.laser_pwm.input_on_command            M20              #
switch.laser_pwm.input_off_command           M21              #
switch.laser_pwm.output_pin                  2.5o^            #
switch.laser_pwm.startup_state               false            #   

# Endstops
endstops_enable                              true             # the endstop module is enabled by default and can be disabled here
#corexy_homing                               false            # set to true if homing on a hbit or corexy
alpha_min_endstop                            1.24^!           # add a ! to invert if endstop is NO connected to ground
alpha_max_endstop                            nc               #
alpha_homing_direction                       home_to_min      # or set to home_to_max and set alpha_max
alpha_min                                    0                # this gets loaded after homing when home_to_min is set
alpha_max                                    1500             # this gets loaded after homing when home_to_max is set
beta_min_endstop                             nc           #
beta_max_endstop                             1.26^!               #
beta_homing_direction                        home_to_max      #
beta_min                                     0                #
beta_max                                     1200             #
gamma_min_endstop                            1.29^!           #
gamma_max_endstop                            1.28^            #
gamma_homing_direction                       home_to_min      #
gamma_min                                    0                #
gamma_max                                    200              #

alpha_fast_homing_rate_mm_s                  70              # feedrates in mm/second
beta_fast_homing_rate_mm_s                   70              # "
gamma_fast_homing_rate_mm_s                  15               # "
alpha_slow_homing_rate_mm_s                  25               # "
beta_slow_homing_rate_mm_s                   25               # "
gamma_slow_homing_rate_mm_s                  5                # "

alpha_homing_retract_mm                      10               # distance in mm
beta_homing_retract_mm                       10               # "
gamma_homing_retract_mm                      20                # "

# Pause button
pause_button_enable                          true             #


# Panel
panel.enable                                 true             # set to true to enable the panel code

# Example for reprap discount GLCD
# on glcd EXP1 is to left and EXP2 is to right, pin 1 is bottom left, pin 2 is top left etc.
# +5v is EXP1 pin 10, Gnd is EXP1 pin 9
panel.lcd                                   reprap_discount_glcd     #
panel.spi_channel                           0                 # spi channel to use  ; GLCD EXP1 Pins 3,5 (MOSI, SCLK)
panel.spi_cs_pin                            0.16              # spi chip select     ; GLCD EXP1 Pin 4
panel.encoder_a_pin                         1.22!^            # encoder pin         ; GLCD EXP2 Pin 3
panel.encoder_b_pin                         1.23!^            # encoder pin         ; GLCD EXP2 Pin 5
panel.click_button_pin                      1.30!^            # click button        ; GLCD EXP1 Pin 2
panel.buzz_pin                              nc                # pin for buzzer      ; GLCD EXP1 Pin 1
panel.button_pause_pin                      nc                # kill/pause          ; GLCD EXP2 Pin 8


# pins used with other panels
#panel.up_button_pin                         0.1!              # up button if used
#panel.down_button_pin                       0.0!              # down button if used
#panel.click_button_pin                      0.18!             # click button if used

panel.menu_offset                            0                 # some panels will need 1 here

panel.alpha_jog_feedrate                     1000              # x jogging feedrate in mm/min
panel.beta_jog_feedrate                      1000              # y jogging feedrate in mm/min
panel.gamma_jog_feedrate                     200               # z jogging feedrate in mm/min

panel.hotend_temperature                     185               # temp to set hotend when preheat is selected
panel.bed_temperature                        60                # temp to set bed when preheat is selected

# Only needed on a smoothieboard
currentcontrol_module_enable                 true             #

return_error_on_unhandled_gcode              false            #

# Ajout demande arthur 13/04/14 pb endstop Z

endstop_debounce_count                       200